/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.taobao.ibatiside.model.mapperv2.impl;

import org.eclipse.emf.common.notify.Notification;

import org.eclipse.emf.ecore.EClass;

import org.eclipse.emf.ecore.impl.ENotificationImpl;

import org.taobao.ibatiside.model.mapperv2.IsGreaterEqual;
import org.taobao.ibatiside.model.mapperv2.Mapperv2Package;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>Is Greater Equal</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * The following features are implemented:
 * <ul>
 *   <li>{@link org.taobao.ibatiside.model.mapperv2.impl.IsGreaterEqualImpl#getClose <em>Close</em>}</li>
 *   <li>{@link org.taobao.ibatiside.model.mapperv2.impl.IsGreaterEqualImpl#getCompareProperty <em>Compare Property</em>}</li>
 *   <li>{@link org.taobao.ibatiside.model.mapperv2.impl.IsGreaterEqualImpl#getCompareValue <em>Compare Value</em>}</li>
 *   <li>{@link org.taobao.ibatiside.model.mapperv2.impl.IsGreaterEqualImpl#getOpen <em>Open</em>}</li>
 *   <li>{@link org.taobao.ibatiside.model.mapperv2.impl.IsGreaterEqualImpl#getPrepend <em>Prepend</em>}</li>
 *   <li>{@link org.taobao.ibatiside.model.mapperv2.impl.IsGreaterEqualImpl#getProperty <em>Property</em>}</li>
 *   <li>{@link org.taobao.ibatiside.model.mapperv2.impl.IsGreaterEqualImpl#getRemoveFirstPrepend <em>Remove First Prepend</em>}</li>
 * </ul>
 * </p>
 *
 * @generated
 */
public class IsGreaterEqualImpl extends GeneralNestedStatementImpl implements IsGreaterEqual {
	/**
	 * The default value of the '{@link #getClose() <em>Close</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getClose()
	 * @generated
	 * @ordered
	 */
	protected static final String CLOSE_EDEFAULT = null;

	/**
	 * The cached value of the '{@link #getClose() <em>Close</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getClose()
	 * @generated
	 * @ordered
	 */
	protected String close = CLOSE_EDEFAULT;

	/**
	 * The default value of the '{@link #getCompareProperty() <em>Compare Property</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getCompareProperty()
	 * @generated
	 * @ordered
	 */
	protected static final String COMPARE_PROPERTY_EDEFAULT = null;

	/**
	 * The cached value of the '{@link #getCompareProperty() <em>Compare Property</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getCompareProperty()
	 * @generated
	 * @ordered
	 */
	protected String compareProperty = COMPARE_PROPERTY_EDEFAULT;

	/**
	 * The default value of the '{@link #getCompareValue() <em>Compare Value</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getCompareValue()
	 * @generated
	 * @ordered
	 */
	protected static final String COMPARE_VALUE_EDEFAULT = null;

	/**
	 * The cached value of the '{@link #getCompareValue() <em>Compare Value</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getCompareValue()
	 * @generated
	 * @ordered
	 */
	protected String compareValue = COMPARE_VALUE_EDEFAULT;

	/**
	 * The default value of the '{@link #getOpen() <em>Open</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getOpen()
	 * @generated
	 * @ordered
	 */
	protected static final String OPEN_EDEFAULT = null;

	/**
	 * The cached value of the '{@link #getOpen() <em>Open</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getOpen()
	 * @generated
	 * @ordered
	 */
	protected String open = OPEN_EDEFAULT;

	/**
	 * The default value of the '{@link #getPrepend() <em>Prepend</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getPrepend()
	 * @generated
	 * @ordered
	 */
	protected static final String PREPEND_EDEFAULT = null;

	/**
	 * The cached value of the '{@link #getPrepend() <em>Prepend</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getPrepend()
	 * @generated
	 * @ordered
	 */
	protected String prepend = PREPEND_EDEFAULT;

	/**
	 * The default value of the '{@link #getProperty() <em>Property</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getProperty()
	 * @generated
	 * @ordered
	 */
	protected static final String PROPERTY_EDEFAULT = null;

	/**
	 * The cached value of the '{@link #getProperty() <em>Property</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getProperty()
	 * @generated
	 * @ordered
	 */
	protected String property = PROPERTY_EDEFAULT;

	/**
	 * The default value of the '{@link #getRemoveFirstPrepend() <em>Remove First Prepend</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getRemoveFirstPrepend()
	 * @generated
	 * @ordered
	 */
	protected static final Boolean REMOVE_FIRST_PREPEND_EDEFAULT = null;

	/**
	 * The cached value of the '{@link #getRemoveFirstPrepend() <em>Remove First Prepend</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getRemoveFirstPrepend()
	 * @generated
	 * @ordered
	 */
	protected Boolean removeFirstPrepend = REMOVE_FIRST_PREPEND_EDEFAULT;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected IsGreaterEqualImpl() {
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	protected EClass eStaticClass() {
		return Mapperv2Package.Literals.IS_GREATER_EQUAL;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getClose() {
		return close;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setClose(String newClose) {
		String oldClose = close;
		close = newClose;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, Mapperv2Package.IS_GREATER_EQUAL__CLOSE, oldClose, close));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getCompareProperty() {
		return compareProperty;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setCompareProperty(String newCompareProperty) {
		String oldCompareProperty = compareProperty;
		compareProperty = newCompareProperty;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, Mapperv2Package.IS_GREATER_EQUAL__COMPARE_PROPERTY, oldCompareProperty, compareProperty));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getCompareValue() {
		return compareValue;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setCompareValue(String newCompareValue) {
		String oldCompareValue = compareValue;
		compareValue = newCompareValue;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, Mapperv2Package.IS_GREATER_EQUAL__COMPARE_VALUE, oldCompareValue, compareValue));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getOpen() {
		return open;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setOpen(String newOpen) {
		String oldOpen = open;
		open = newOpen;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, Mapperv2Package.IS_GREATER_EQUAL__OPEN, oldOpen, open));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getPrepend() {
		return prepend;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setPrepend(String newPrepend) {
		String oldPrepend = prepend;
		prepend = newPrepend;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, Mapperv2Package.IS_GREATER_EQUAL__PREPEND, oldPrepend, prepend));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getProperty() {
		return property;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setProperty(String newProperty) {
		String oldProperty = property;
		property = newProperty;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, Mapperv2Package.IS_GREATER_EQUAL__PROPERTY, oldProperty, property));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Boolean getRemoveFirstPrepend() {
		return removeFirstPrepend;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setRemoveFirstPrepend(Boolean newRemoveFirstPrepend) {
		Boolean oldRemoveFirstPrepend = removeFirstPrepend;
		removeFirstPrepend = newRemoveFirstPrepend;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, Mapperv2Package.IS_GREATER_EQUAL__REMOVE_FIRST_PREPEND, oldRemoveFirstPrepend, removeFirstPrepend));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Object eGet(int featureID, boolean resolve, boolean coreType) {
		switch (featureID) {
			case Mapperv2Package.IS_GREATER_EQUAL__CLOSE:
				return getClose();
			case Mapperv2Package.IS_GREATER_EQUAL__COMPARE_PROPERTY:
				return getCompareProperty();
			case Mapperv2Package.IS_GREATER_EQUAL__COMPARE_VALUE:
				return getCompareValue();
			case Mapperv2Package.IS_GREATER_EQUAL__OPEN:
				return getOpen();
			case Mapperv2Package.IS_GREATER_EQUAL__PREPEND:
				return getPrepend();
			case Mapperv2Package.IS_GREATER_EQUAL__PROPERTY:
				return getProperty();
			case Mapperv2Package.IS_GREATER_EQUAL__REMOVE_FIRST_PREPEND:
				return getRemoveFirstPrepend();
		}
		return super.eGet(featureID, resolve, coreType);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public void eSet(int featureID, Object newValue) {
		switch (featureID) {
			case Mapperv2Package.IS_GREATER_EQUAL__CLOSE:
				setClose((String)newValue);
				return;
			case Mapperv2Package.IS_GREATER_EQUAL__COMPARE_PROPERTY:
				setCompareProperty((String)newValue);
				return;
			case Mapperv2Package.IS_GREATER_EQUAL__COMPARE_VALUE:
				setCompareValue((String)newValue);
				return;
			case Mapperv2Package.IS_GREATER_EQUAL__OPEN:
				setOpen((String)newValue);
				return;
			case Mapperv2Package.IS_GREATER_EQUAL__PREPEND:
				setPrepend((String)newValue);
				return;
			case Mapperv2Package.IS_GREATER_EQUAL__PROPERTY:
				setProperty((String)newValue);
				return;
			case Mapperv2Package.IS_GREATER_EQUAL__REMOVE_FIRST_PREPEND:
				setRemoveFirstPrepend((Boolean)newValue);
				return;
		}
		super.eSet(featureID, newValue);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public void eUnset(int featureID) {
		switch (featureID) {
			case Mapperv2Package.IS_GREATER_EQUAL__CLOSE:
				setClose(CLOSE_EDEFAULT);
				return;
			case Mapperv2Package.IS_GREATER_EQUAL__COMPARE_PROPERTY:
				setCompareProperty(COMPARE_PROPERTY_EDEFAULT);
				return;
			case Mapperv2Package.IS_GREATER_EQUAL__COMPARE_VALUE:
				setCompareValue(COMPARE_VALUE_EDEFAULT);
				return;
			case Mapperv2Package.IS_GREATER_EQUAL__OPEN:
				setOpen(OPEN_EDEFAULT);
				return;
			case Mapperv2Package.IS_GREATER_EQUAL__PREPEND:
				setPrepend(PREPEND_EDEFAULT);
				return;
			case Mapperv2Package.IS_GREATER_EQUAL__PROPERTY:
				setProperty(PROPERTY_EDEFAULT);
				return;
			case Mapperv2Package.IS_GREATER_EQUAL__REMOVE_FIRST_PREPEND:
				setRemoveFirstPrepend(REMOVE_FIRST_PREPEND_EDEFAULT);
				return;
		}
		super.eUnset(featureID);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public boolean eIsSet(int featureID) {
		switch (featureID) {
			case Mapperv2Package.IS_GREATER_EQUAL__CLOSE:
				return CLOSE_EDEFAULT == null ? close != null : !CLOSE_EDEFAULT.equals(close);
			case Mapperv2Package.IS_GREATER_EQUAL__COMPARE_PROPERTY:
				return COMPARE_PROPERTY_EDEFAULT == null ? compareProperty != null : !COMPARE_PROPERTY_EDEFAULT.equals(compareProperty);
			case Mapperv2Package.IS_GREATER_EQUAL__COMPARE_VALUE:
				return COMPARE_VALUE_EDEFAULT == null ? compareValue != null : !COMPARE_VALUE_EDEFAULT.equals(compareValue);
			case Mapperv2Package.IS_GREATER_EQUAL__OPEN:
				return OPEN_EDEFAULT == null ? open != null : !OPEN_EDEFAULT.equals(open);
			case Mapperv2Package.IS_GREATER_EQUAL__PREPEND:
				return PREPEND_EDEFAULT == null ? prepend != null : !PREPEND_EDEFAULT.equals(prepend);
			case Mapperv2Package.IS_GREATER_EQUAL__PROPERTY:
				return PROPERTY_EDEFAULT == null ? property != null : !PROPERTY_EDEFAULT.equals(property);
			case Mapperv2Package.IS_GREATER_EQUAL__REMOVE_FIRST_PREPEND:
				return REMOVE_FIRST_PREPEND_EDEFAULT == null ? removeFirstPrepend != null : !REMOVE_FIRST_PREPEND_EDEFAULT.equals(removeFirstPrepend);
		}
		return super.eIsSet(featureID);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		if (eIsProxy()) return super.toString();

		StringBuffer result = new StringBuffer(super.toString());
		result.append(" (close: ");
		result.append(close);
		result.append(", compareProperty: ");
		result.append(compareProperty);
		result.append(", compareValue: ");
		result.append(compareValue);
		result.append(", open: ");
		result.append(open);
		result.append(", prepend: ");
		result.append(prepend);
		result.append(", property: ");
		result.append(property);
		result.append(", removeFirstPrepend: ");
		result.append(removeFirstPrepend);
		result.append(')');
		return result.toString();
	}

} //IsGreaterEqualImpl
